package com.webvihar.access2db.dbutils;

public class DataType {
	public String type;
	public boolean hasLength;
	public boolean hasZeroFill;
	public boolean hasUnsigned;
	public boolean hasAllowNull;
	public boolean hasDefault;
	public boolean hasCollation;
	public boolean hasComment;

	public DataType() {
		super();	
	}
	
	public DataType(String type,boolean hasLength,boolean hasZeroFill,boolean hasUnsigned,boolean hasAllowNull,boolean hasDefault,boolean hasCollation,boolean hasComment){
		this.type = type;
		this.hasLength = hasLength;
		this.hasZeroFill = hasZeroFill;
		this.hasUnsigned = hasUnsigned;
		this.hasAllowNull = hasAllowNull;
		this.hasDefault = hasDefault;
		this.hasCollation = hasCollation;
		this.hasComment = hasComment;
	}
	
	@Override
	public String toString() {
		return (type == null) ? super.toString() : type;
	}
}
